package com.kuai.system.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.kuai.common.result.entity.Result;
import com.kuai.system.service.SysMenuService;

import lombok.extern.slf4j.Slf4j;

@RestController
@RequestMapping("sys/menu")
@Slf4j
public class SysMenuController {
	
	@Autowired
	private  SysMenuService  menuService;
	
	@GetMapping("list")
	public Result listAll() {
		log.info("系统菜单查询<==={}","");
		try {
			return menuService.listAll();
		} catch (Exception e) {
			return Result.error(e.getMessage());
		}
		
	}

}
